//
//  TrianDataBaseHandel.h
//  LiTingFeng
//
//  Created by xinxuan on 16/3/4.
//  Copyright © 2016年 Bullgo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TrianDataBaseHandel : NSObject
+(instancetype)shareManager;
-(void)insertData:(id)object;
-(NSMutableArray *)fetchAllData;

//读取数据
-(NSMutableArray *)fetchAllName;

////是更新还是写入数据
//-(void)updataOrInsertWithName:(CommenModel*)model;

//根据课程名查找数据
-(CommenModel*)fetchDataWithName:(NSString*)name;

//判断是否存入过
- (BOOL)selectNewsTitle:(NSString*)name;

//删除数据
-(void)deleteData:(id)object;
@end
